/**
 * @time 2017/1/5.
 */
import actionType from '../constants/actionType';

const _default = {
    data: '',
    stories: [],
    detail: null,
}
const privilegeReducer = (state = _default, action) => {

    switch (action.type) {

        case actionType.DETAILDATA:
            return action.detail;

        case actionType.GETSUCCESS:
            return action.data;

        case actionType.EMPTYDATA:
            return _default;
        default:
            return state;
    }
};

export default privilegeReducer;
